import request from '@/utils/request'

// 查询消息列表接口(不包含已读)
export function queryUserMessageNoRead(data) {
  return request({
    url: '/tJxMessageStore/queryUserMessageNoRead',
    method: 'post',
    data
  })
}
// 查询消息列表接口(未处理)
export function queryUserMessageReadAndNoReview(data) {
  return request({
    url: '/tJxMessageStore/queryUserMessageReadAndNoReview',
    method: 'post',
    data
  })
}

// 更新消息已读接口
export function updateMessageToRead(data) {
  return request({
    url: '/tJxMessageStore/updateMessageToRead',
    method: 'post',
    data
  })
}

// 查询消息列表接口
export function queryUserMessage(data) {
  return request({
    url: '/tJxMessageStore/queryUserMessage',
    method: 'post',
    data
  })
}

// 将所有消息变为已读
export function updateMessageAllIsRead(data) {
  return request({
    url: '/tJxMessageStore/updateMessageAllIsRead',
    method: 'post',
    data
  })
}
// 首页-主页-常用功能
export function queryCommonSettingAll(data) {
  return request({
    url: '/tJxCommonSetting/queryCommonSettingAll',
    method: 'post',
    data
  })
}
// 首页-主页-常用功能-删除
export function deleteCommonSetting(data) {
  return request({
    url: '/tJxCommonSetting/deleteCommonSetting',
    method: 'post',
    data
  })
}
// 首页-主页-常用功能-删除
export function insertCommonSetting(data) {
  return request({
    url: '/tJxCommonSetting/insertCommonSetting',
    method: 'post',
    data
  })
}
